#include "stm32f10x.h"     
#include "oled.h"
#include "my_rtc.h"

int main()
{
	OLED_Init();
	MyRTC_Init();
	OLED_ShowString(1,1, "Date:xxxx-xx-xx");
	OLED_ShowString(2,1, "Time:xx:xx:xx");
	OLED_ShowString(3,1, "CNT :");
	
while(1){
		MyRTC_ReadTime();
		OLED_ShowNum(1,6, myRTCTime[0],4);
		OLED_ShowNum(1,11,myRTCTime[1],2);
		OLED_ShowNum(1,14,myRTCTime[2],2);
		OLED_ShowNum(2, 6,myRTCTime[3],2);
		OLED_ShowNum(2,9, myRTCTime[4],2);
		OLED_ShowNum(2,12,myRTCTime[5],2);
		OLED_ShowNum(3,6, MyRTC_GetCNT(),10);
		}
}	

















